package com.qfjy.wangyigui;

/**
 * @Author: WYG
 * @Date: 2022/9/13 $ {TIME}
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        AirConditionerCommand command = new AirConditionerCommand(new AirConditioner());
        RemoteControl remoteControl = new RemoteControl(command);

        TelevisionCommand command1 = new TelevisionCommand(new Television());
        RemoteControl remoteControl1 = new RemoteControl(command1);

        remoteControl.onButton();
        remoteControl.offButton();

        remoteControl1.onButton();
        remoteControl1.offButton();
    }
}
